package ClassData;

import ClassData.Visitor.IVisitor;
import ClassData.Visitor.IVisitorElement;

public class ConstantPoolDouble_Info extends ConstantPoolInfo implements IVisitorElement {
	
	private double value;

	public ConstantPoolDouble_Info(double newValue) {
		value=newValue;	
	}

	public double getValue() {
		return(value);
	}
	
	/**
	 * returns type of this constant pool entry
	 * 
	 */	
	public int getType() {
		return(CONSTANT_Double);
	}
	
	@Override
	public void receive_Visitor(IVisitor visitor) {
		visitor.visit_ConstantPoolDouble_Info(this);
	}
	
}
